   
      @import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');
        * {
            box-sizing: border-box;
        }
         
      :root {
        --primary-color: #4a90e2;
        --secondary-color: #50b848;
        --error-color: #e53e3e;
        --success-color: #50b848;
        --text-color: #2d3748;
        --light-bg: #f5f7fa;
        --card-shadow: 0 4px 12px rgba(0,0,0,0.08);
        --transition: all 0.3s ease;
      }
        body {
            font-family: 'CoconNextArabic-Regular', sans-serif !important;
            background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
            color: #2d3748;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
        }
        
        .horizontal-layout {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
  
        .main-header {
            background: #ffffff;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
            position: fixed;
            width: 100%;
            z-index: 1000;
           
        }
        
        .header-content {
            display: flex;
            flex-direction: row-reverse;
            justify-content: space-between;
            align-items: center;
            padding: 5px 30px;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .logo-section {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .logo-section img {
            height: 40px;
            object-fit: contain;
        }
        
        
        .logo-text {
            font-weight: 700;
            font-size: 1rem;
            color: #090a09 ;
        }
        .visitor-dropdown {
  position: relative;
  display: inline-block;
  font-family: "Tajawal", sans-serif;
}

/* زر الزائر */
.visitor-btn {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid #4a90e2;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #4a90e2;
  transition: all 0.3s;
}

.visitor-btn:hover {
  background: #4a90e2;
  color: #fff;
}

/* السهم */
.visitor-btn i {
  font-size: 14px;
  transition: transform 0.3s;
}

/* دوران السهم عند الفتح */
.visitor-btn.active i {
  transform: rotate(180deg);
}

/* القائمة */
.visitor-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 200px;
  z-index: 1000;
  overflow: hidden;
  display: none;
}

.visitor-menu.show {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

.visitor-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.visitor-menu a:hover {
  background: #f0f7ff;
  color: #4a90e2;
}

/* حركة لطيفة */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

      .auth-buttons {
          display: flex;
          gap: 12px;
         
      }
      
      .auth-btn {
          padding: 5px 20px;
          border-radius: 6px;
          font-weight: 600;
          transition: all 0.3s;
          text-decoration: none;
      }
      
      .login-btn {
          background: #ffffff;
          color: #4a90e2;
          border: 1px solid #4a90e2;
      }
      
      .register-btn {
          background: #4a90e2;
          color: white;
          border: 1px solid #4a90e2;
      }
      
      .auth-btn:hover {
          transform: translateY(-2px);
          box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      }


.user-profile-container {
  position: relative;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.user-profile:hover {
  background-color: #f0f7ff;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 10px;
  width: 180px;
  z-index: 1000;
}

.user-dropdown.show {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.user-dropdown a, 
.user-dropdown button {
  display: flex;
  align-items: center;
  padding:5px 12px;
  color: #2d3748;
  text-decoration: none;
  border-radius: 4px;
  gap: 8px;
  width: 100%;
  text-align: right;
  background: none;
  border: none;
  cursor: pointer;
}

.user-dropdown a:hover, 
.user-dropdown button:hover {
  background-color: #f0f7ff;
  color: #4a90e2;
}

.user-dropdown button {
  color: #e53e3e;
}

.user-dropdown button:hover {
  color: #c53030;
}
.avatar-wrapper {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
}
.badges-container {
  position: absolute;
  top: -12px;
  left: -12px;
  display: flex;
  gap: 2px;
}
.badge-overlay {
  font-size: 14px;
  line-height: 1;
}
#notifBellToggle {
  top: -20px;
  left: 0%;
  right: 80% ;
  display: flex;
  gap: 5px;
  
   }
 
.education-filiers {
    background: #f8f9fa; /* أو يمكنك استخدام background: inherit; */
    padding: 8px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.filiers-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.filier-btn-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.filier-btn {
    
    border-radius: 8px;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    background-color: transparent; /* خلفية شفافة أو نفس لون البودي */
    min-width: 200px;
    text-align: center;
    position: relative;
     border: 2px solid currentColor; /* الإطار بلون النص */
}

/* ألوان النصوص المضيئة */
.primary-btn {
    color: #007bff; /* أزرق مضيء */
}

.middle-btn {
    color: #28a745; /* أخضر مضيء */
}

.secondary-btn {
    color: #ff9800; /* برتقالي مضيء */
}

/* التأثير عند التحويم */
.filier-btn:hover {
    transform: translateY(-2px);
    box-shadow: none; /* بدون ظل أو أضف واحدًا خفيفًا لو أردت */
    
}
/* السهم ▼ بجانب كل زر */
.filier-btn::after {
    content: " ▼";
    font-size: 18px;
    margin-right: 6px;
    pointer-events: none;
}
.filier-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    min-width: 250px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 0;
    z-index: 100;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
}


        .subject-item {
            position: relative;
            margin-bottom: 0;
            border: 1px solid #e2e8f0;
            border-radius: 0;
            padding: 5px 15px;
            transition: all 0.3s;
            border-left: none;
            border-right: none;
            justify-content: space-between;
            align-items: center;
            color: #2d3748;
            text-decoration: none;
            font-weight: 600;
           
        }
        

        .subject-item:first-child {
            border-top: none;
        }

        .subject-item:last-child {
            border-bottom: none;
        }
        
        .subject-item a {
            text-decoration: none;
            color: #2d3748;
            display: block;
            width: 100%;
            height: 100%;
        }
        
        .subject-item:hover {
            background-color: #f8f9fa;
            border-color: #cbd5e0;
        }
        
        .subject-item::after {
            content: ">";
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #718096;
        }
        
        .levels-dropdown {
            display: none;
            position: absolute;
            right: 100%;
            top: 0;
            background-color: white;
            min-width: 230px;
            border-radius: 4px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            z-index: 101;
            padding: 10px;
            border: 1px solid #e2e8f0;
           
        }
        
        .subject-item:hover .levels-dropdown {
            display: block;
        }
        
        .levels-dropdown a {
            display: block;
            padding: 8px 15px;
            color: #2d3748;
            text-decoration: none;
            border-radius: 4px;
            margin: 3px 0;
            transition: all 0.2s;
        }
        
        .levels-dropdown a:hover {
            background-color: #edf2f7;
            padding-right: 20px;
        }
        
        .primary-dropdown .subject-item:hover {
            background-color: #ebf8ff;
            border-color: #90cdf4;
        }
        
        .middle-dropdown .subject-item:hover {
            background-color: #f0fff4;
            border-color: #9ae6b4;
        }
        
        .secondary-dropdown .subject-item:hover {
            background-color: #fffaf0;
            border-color: #fbd38d;
        }
        
        .dropdown-hidden-items {
            display: none;
        }
        
        .dropdown-more-btn {
            display: block;
            text-align: center;
            padding: 8px;
            margin-top: 5px;
            background: #f5f5f5;
            color: #555;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid #e2e8f0;
        }
        
        .dropdown-more-btn:hover {
            background: #e0e0e0;
        }
        
        .show-more-dropdown .dropdown-hidden-items {
            display: block;
            animation: fadeIn 0.3s ease-out;
        }
        
        .show-more-dropdown .dropdown-more-btn::after {
            
            font-size: 0.8em;
        }
        
        .header-spacer {
            height: 100px;
        }
        .main-content {
            display: flex;
            flex-direction: column;
            flex: 1;
            padding: 30px;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }
        
        .welcome-section {
            background: linear-gradient(135deg, #50b848 0%, #2e7d32 100%);
            padding: 25px;
            border-radius: 12px;
            color: white;
            text-align: center;
            margin-bottom: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .welcome-title {
            font-size: 1.8rem;
            margin-bottom: 10px;
            font-weight: 700;
        }
        
        .welcome-text {
            font-size: 18px;
            font-weight: bold;
            color: rgb(246, 241, 241);
            animation: blinkText 2s infinite alternate;
        }
    
        @keyframes blinkText {
            from { opacity: 1; }
            to { opacity: 0; }
        }
        
        @keyframes pulse {
            0% { opacity: 0.9; }
            50% { opacity: 1; }
            100% { opacity: 0.9; }
        }
        
        .search-section {
          margin-bottom: 0px;
          text-align: center;
        }

        .search-container {
          position: relative;
          display: inline-block;
          width: 100%;
          max-width: 800px;
        }

        .search-icon {
          position: absolute;
          right: 0px;
          top: 50%;
          transform: translateY(-50%);
          color: #070707;
          width: 40px;
          height: 40px;
          padding: 8px;
          border: 1px solid #e2e8f0;
          border-radius: 4px;
          background-color: #f8fafc;
          box-shadow: 0 1px 2px rgba(0,0,0,0.05);
          transition: all 0.3s ease;
          align-items: center;
          justify-content: center;
          
        }

        .search-icon:hover {
           background-color: #f2f5f8;
           border-color: #fafbfc;
        }

        .search-input {
          width: 100%;
          padding: 14px 60px 14px 40px;
          border-radius: 4px;
          border: 1px solid #e2e8f0;
          font-size: 1rem;
          box-shadow: 0 2px 8px rgba(0,0,0,0.05);
          transition: all 0.3s;
          height: 40px;
        }

        .search-input:focus {
          outline: none;
          border-color: #4a90e2;
          box-shadow: 0 2px 12px rgba(74, 144, 226, 0.2);
        }
        
        .horizontal-container {
            width: 100%;
            overflow: hidden;
        }
        
        .horizontal-sections {
            display: flex;
            gap: 15px;
            padding: 10px 0;
            width: 100%;
            flex-wrap: nowrap;
            
        }
        .subject-card {
            min-width: 280px;
            width: calc(33.33% - 15px);
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            overflow: hidden;
            transition: all 0.3s;
            flex-shrink: 1;
           
        }
        
        
        .subject-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        }
        
        .card-header {
            padding: 18px;
            color: white;
            font-weight: 700;
            text-align: center;
            font-size: 1.2rem;
            
        }

        
        .primary-card .card-header {
            background: linear-gradient(135deg, #4a90e2 0%, #005f99 100%);
           
        }
        
        .middle-card .card-header {
            background: linear-gradient(135deg, #50b848 0%, #2e7d32 100%);
            
        }
        
        .secondary-card .card-header {
            background: linear-gradient(135deg, #f5a623 0%, #e65100 100%);
            
        }
        
        .card-body {
            padding: 20px;
        }
        
        .subject-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        
        
        .subject-item:hover {
            background: #edf2f7;
            transform: translateX(-3px);
        }
        
       
        
        .more-btn {
            display: block;
            text-align: center;
            padding: 10px;
            background: #f1f5f9;
            color: #4a5568;
            border-radius: 6px;
            margin-top: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .more-btn:hover {
            background: #e2e8f0;
        }
        
        .hidden-subjects {
            display: none;
        }
        
        .show-more .hidden-subjects {
            display: flex;
            flex-direction: column;
            gap: 12px;
            animation: fadeIn 0.3s ease-out;
        }
        
        
  .footer {
  background: #2d3748;
  color: white;
  padding: 10px 3px;
  text-align: center;
  margin-top: 100px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.footer-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 15s linear infinite;
  will-change: transform;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* دعم الأجهزة الصغيرة */
@media (max-width: 768px) {
  .footer {
    font-size: 14px;
    padding: 8px 0;
  }

  .footer-track {
    animation-duration: 20s;
    font-size: 14px;
  }
}
        
       
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
       
        
        @media (max-width: 1200px) {
            .subject-card {
                width: calc(50% - 15px);
            }
        }
       
        

        .subject-item a i {
            margin-left: 8px;
            width: 20px;
            text-align: center;
        }
        
        .levels-dropdown a i {
            margin-left: 8px;
            width: 20px;
            text-align: center;
        }
        
        /* Add icons to phase buttons */
        .filier-btn::before {
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            margin-left: 8px;
        }
        
        .primary-btn::before {
            content: "\f51c"; /* Child icon */
        }
        
        .middle-btn::before {
            content: "\f549"; /* School icon */
        }
        
        .secondary-btn::before {
            content: "\f19d"; /* Graduation cap */
        }
        /* Add icons to phase card */
        .card-header::before {
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            margin-left: 8px;
        }
        
        .primary-card::before {
            content: "\f51c"; /* Child icon */
        }
        
        .middle-card::before {
            content: "\f549"; /* School icon */
        }
        
        .secondary-card::before {
            content: "\f19d"; /* Graduation cap */
        }
       @media (max-width: 768px) {
        
    .header-content {
        flex-direction: row-reverse;
        padding: 5px 15px;
        align-items: center;
    }
    
    .auth-buttons {
        margin-top: 0;
        width: auto;
        gap: 8px;
    }
    
    .auth-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    .logo-section {
        margin-left: 0;
    }
    
    .logo-section img {
        width: 18px;
        height: 18px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    .level-btn {
        min-width: 150px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .header-spacer {
        height: 120px;
    }
    
    .subject-card {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .horizontal-sections {
        flex-direction: column;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    /* تحسين شريط التعليمات */
    .education-filiers {
        padding: 5px 0;
    }
    
    .filiers-container {
        flex-direction: column;
        gap: 5px;
        padding: 0 10px;
    }
    
    .filier-btn {
        min-width: 100%;
        font-size: 14px;
    }
    
    /* تحسين القوائم المنسدلة */
    .filier-dropdown {
        position: fixed;
        top: 160px;
        width: 100%;
        left: 5%;
        max-height: 60vh;
        overflow-y: auto;
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        border: 1px solid #e2e8f0;
        margin-top: 5px;
        display: none;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.2s ease;
    }
    
    .filier-btn-container:focus-within .filier-dropdown,
    .filier-dropdown.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    
    .levels-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 5px;
    }
    
    /* تحسين شريط البحث */
    .search-input {
        padding: 12px 50px 12px 15px;
    }
    
    .search-icon {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .header-spacer {
        height: 200px;
    }
    
    .welcome-section {
        padding: 15px;
    }
    
    .subject-item {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .card-header {
        font-size: 1rem;
        padding: 12px;
    }
    
    .more-btn {
        padding: 8px;
        font-size: 14px;
    }
    
    /* تحسينات عامة للهواتف */
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* منع التكبير عند النقر على حقول الإدخال */
    input, select, textarea {
        font-size: 16px;
    }
    
    .filier-dropdown {
        max-height: 50vh;
    }
}

.notif-badge {
  position: absolute;
  top: -25px;
  right: -8px;
  background: red;
  color: white;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 50%;
  display: none;
  font-weight: bold;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
  z-index: 1000;
}


.notif-dropdown {
  position: absolute;
  top: 30px;
  right: 0;
  width: 320px;
  max-height: 400px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 9999;
  padding: 10px;
  overflow-y: auto;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 0px;
  margin-bottom: 0px;
}

.clear-btn {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 12px;
}

.admin-message {
  background: #f9f9f9;
  border-left: 4px solid #007bff;
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 6px;
  font-size: 13px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  0% { transform: scale(0); }
  80% { transform: scale(1.2); }
  100% { transform: scale(1); }
}




